var express = require('express');
var router = express.Router();
const uploads =require('../middleware/uploadAvatar')
const { register, login, getUsers, updatePassword ,uploadAvatar,quit} = require('../controller/usersCtr')
//注册
router.post('/register', register)
router.post('/login', login)
router.get('/getusers', getUsers)
router.post('/updateAvatar',uploads,uploadAvatar)
router.post('/updatepassword', updatePassword)
router.get('/quit',quit)
module.exports = router;
